package com.sdvdxl.service;

import java.util.List;

import com.sdvdxl.model.BlogEntity;
import com.sdvdxl.model.BlogTagEntity;
import com.sdvdxl.model.BlogTypeEntity;
import com.sdvdxl.model.PaggerEntity;
import com.sdvdxl.util.JsonResult;

public interface BlogService {
	JsonResult add(BlogEntity blogEntity);
	JsonResult del(BlogEntity blogEntity);
	BlogEntity get(BlogEntity blogEntity);
	List<BlogEntity> getAll();
	void update(BlogEntity blogEntity);
	List<BlogEntity> getBlogsByType(BlogTypeEntity blogTypeEntity);
	List<BlogEntity> getBlogsByTag(BlogTagEntity blogTagEntity);
	List<BlogEntity> getBlogsByTypeWithPagger(PaggerEntity<BlogEntity> paggerEntity);
}
